package com.jzlx.domain;

/**
 * @description:
 * @author: zhulei
 * @create: 2025-03-24 15:57
 **/
public class MemoryInfo {
    public static final String MB = "MB";
    public static final String GB = "GB";
    public static final String KB = "KB";
    private long totalMemory;
    private long availableMemory;
    private String unit;

    public MemoryInfo() {
    }

    public MemoryInfo(long totalMemory, long availableMemory, String unit) {
        this.totalMemory = totalMemory;
        this.availableMemory = availableMemory;
        this.unit = unit;
    }

    public long getTotalMemory() {
        return totalMemory;
    }

    public void setTotalMemory(long totalMemory) {
        this.totalMemory = totalMemory;
    }

    public long getAvailableMemory() {
        return availableMemory;
    }

    public void setAvailableMemory(long availableMemory) {
        this.availableMemory = availableMemory;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
}
